<%--
  Created by IntelliJ IDEA.
  User: risen-ky
  Date: 2020-12-10
  Time: 11:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><html>
<head>
    <title>Title</title>
</head>
<body>
<h4>if测试</h4>
<form action="coreif.jsp" method="get">
<%--    EL表达式获取表单中数据
        ${param.参数名}
--%>

    <input type="text" name="username" value="${param.username}">
    <input type="submit"value="登录">
</form>

<c:if test="${param.username=='admin'}" var="isAdmin" >
    <c:out value="管理员欢迎您！">

    </c:out>
</c:if>
<c:out value="${isAdmin}"></c:out>
</body>
</html>
